<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../jquery-3.3.1.min.js"></script>
    <title>Document</title>
</head>

<body>
    <div>
        <h2>提交成功</h2>
        <a href="https://www.baidu.com">
            <span id="second">3</span>秒后会跳转
        </a>
    </div>
    <script>
        function go(ses, url) {
            $("#second").html(ses);
            if (--ses > 0) {
                setTimeout('go(' + ses + ',\'' + url + '\') ', 1000);
            } else {
                location.href = url;
            }
        }
        go(3, "https://www.baidu.com");
    </script>
</body>

</html>